package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.course.dto.CourseCategoryDto;
import com.fitness.fitness.modal.course.entity.CourseCategory;
import com.fitness.fitness.modal.course.vo.CourseCategoryVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CourseCategoryConvertor {
    CourseCategoryVO entity2Vo(CourseCategory result);
    Page<CourseCategoryVO> entity2Vo(Page<CourseCategory> result);
    CourseCategory dto2Entity(CourseCategoryDto equipmentDto);

    List<CourseCategoryVO> entities2Vo(List<CourseCategory> result);
}
